package com.hb.core.pojo.project.section.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.Attachments;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 供应商标段报名表
 * </p>
 *
 * @author zhongdl
 * @since 2021-10-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_supply_bid_signup")
@ApiModel(value="SupplyBidSignup对象", description="供应商标段报名表")
public class SupplyBidSignup extends MPCommonEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "项目ID")
    private Long projectId;

    @ApiModelProperty(value = "方案(包)信息ID")
    private Long sectionId;

    @ApiModelProperty(value = "投标人id")
    private Long bidderId;

    @ApiModelProperty(value = "组织机构Id")
    private Long orgId;

    @ApiModelProperty(value = "组织机构名称")
    private String orgName;

    @ApiModelProperty(value = "投标邀请记录ID")
    private String inviteId;

    @ApiModelProperty(value = "项目负责人")
    private String projectContact;

    @ApiModelProperty(value = "联系人姓名")
    private String contactName;

    @ApiModelProperty(value = "联系人手机")
    private String mobile;

    @ApiModelProperty(value = "联系人邮箱")
    private String email;

    @ApiModelProperty(value = "固定电话/回执电话")
    private String tel;

    @ApiModelProperty(value = "报名时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime signUpTime;

    @ApiModelProperty(value = "报名资料")
    private Attachments signData;

    @ApiModelProperty(value = "是否已递交投标文件")
    private Integer submitFlag;

    @ApiModelProperty(value = "是否报名(1: 报名成功, 2: 已保存, 3: 报名未通过 4 报名中)")
    private Integer signupStatus;

    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "确认信息")
    private String confirmMessage;

    @ApiModelProperty(value = "投标文件撤回时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  relinquishTime;

    @ApiModelProperty(value = "是否缴纳保证金")
    private Integer bondFlag;

    @ApiModelProperty(value = "投标ip地址")
    private String ipAddress;

    @ApiModelProperty(value = "回执文件")
    private Attachments receiptFile;

    @ApiModelProperty(value = "未通过原因")
    private String reason;

    @ApiModelProperty(value = "处理时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  processingTime;
}
